package org.rkuk.kasutil.media 
{
	/**
	 * 用于代理来自FMS的MediaStream行为
	 * @author rkuk
	 */
	internal class FMSMediaStreamProxy extends MediaStreamProxy 
	{
		
		public function FMSMediaStreamProxy(mediaStream:MediaStream) 
		{
			super(mediaStream);
		}
		
		/**
		 * @inheritDoc
		 */
		override public function start(...rest):void 
		{
			//在fms上，暂停以后要play需要先close
			if(state.description == MediaSourceEvent.PAUSE)
				stop();
				
			super.start.apply(this, rest);
		}
	}
}